module.exports = app => {
  const { STRING } = app.Sequelize; 
  
  const ProductTag = app.model.define('productTag',{
      tag:STRING,         //标签
  })
  ProductTag.associate = function() {  
    app.model.ProductTags.belongsTo(app.model.ProductName,{
      foreignKey: 'name_id',
      // as: 'name'
    })
}
  return ProductTag
}